﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Shared/MainPage.Master" CodeBehind="SaleorCheckOffs.aspx.cs" Inherits="Runda.CMS.Portal.Finiance.SaleorCheckOffs" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <script src="../Content/global.js" type="text/javascript"></script>     
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
   <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" /> 
    <script src="../Content/Grid/map_grid.js" type="text/javascript" ></script>
    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Content/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="../Content/Bussiness/datasync.js"></script>
    
      <script type="text/javascript">
           function OpenEditUser(UserID) {
               openMyWin('CheckOffsList.aspx?UserID=' + UserID, 'userInfo', 800, 600);
           }       
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">

<div class="Container">
        <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0"> 
            <tbody>
                <tr height="23">
                    <td class="wizHead" colspan="7">
                        <table style="table-layout: fixed; font-size: 9pt" cellspacing="0" cellpadding="0" width="100%" height="100%">
                            <colgroup>
                                <col>
                                <col width="60">
                                <col width="60"> 
                                <tr><td style="color:#ffffff"><b>快速查询</b></td><td class="icMenu mnuRight" noWrap></td></tr>
                        </table>
                    </td>
                </tr>
                <tr id="__appFind_trQuery" height="40">
                    <td class="wizBox1" colspan="7">
                        <table id="__appFind_tbQuery1" style="TABLE-LAYOUT: fixed; FONT-SIZE: 9pt" height="100%" cellSpacing="0" cellPadding="0" width="100%"><col>
                        <tr>
                            <td  align="right" style="width:10%">奖惩月份：</td>
                            <td style="width:8%">
                                <asp:DropDownList ID="ddlYear" runat="server">
                                    <asp:ListItem>2011</asp:ListItem>
                                    <asp:ListItem>2012</asp:ListItem>
                                    <asp:ListItem>2013</asp:ListItem>
                                    <asp:ListItem>2014</asp:ListItem>
                                    <asp:ListItem>2015</asp:ListItem>
                                </asp:DropDownList></td><td style="width:2%">年</td>
                                <td style="width:6%"><asp:DropDownList ID="ddlMonth" runat="server">
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>
                                    <asp:ListItem>6</asp:ListItem>
                                    <asp:ListItem>7</asp:ListItem>
                                    <asp:ListItem>8</asp:ListItem>
                                    <asp:ListItem>9</asp:ListItem>
                                    <asp:ListItem>10</asp:ListItem>
                                    <asp:ListItem>11</asp:ListItem>
                                    <asp:ListItem>12</asp:ListItem>
                                </asp:DropDownList></td><td style="width:3%">月</td>
                            <td style="width:15%" align="right">
                            按员工名称：</td>
                            <td style="width:36%"><asp:TextBox ID="txtContractCodeBasic" runat="server" Width="400px" CssClass="input"></asp:TextBox></td>
                            <td style="width:10%"><asp:Button ID="btnSearchBasic" runat="server" Text="查找" CssClass="button" onclick="btnSearch_Click"/></td>
                            <td style="width:10%" align="center"><asp:Button ID="btnExportExcel" runat="server" Text="导出(Excel)" CssClass="button" onclick="btnExportExcel_Click"/></td>
                        </tr></table>
                    </td>
                </tr>
            </tbody>
    </table>            
</div>

 <div class="Container">
         
         <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>业务员列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>                   
                       
                    </td>       
                      <td class="icMenu mnuRight" nowrap>                     
                    </td>           
                </tr>
            </tbody>
        </table>       
         
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
             <asp:Repeater ID="RepeaterUsers" runat="server" 
                 onitemcommand="RepeaterUsers_ItemCommand" 
             onitemdatabound="RepeaterUsers_ItemDataBound">
                 <HeaderTemplate>
                    <table id="grid" class="grid" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="header">
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">业务员</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>                                           
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">当月惩罚</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">当月奖励</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">当月奖罚</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">当月核销</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">当月余额</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">截止当月奖罚</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">截止当月核销</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">截止当月余额</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td width="14">
                        <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif" AlternateText="刷新列表"/> 
                    </td>
                </tr>
                 </HeaderTemplate>
                 <ItemTemplate>
                  <tr class="data" ondblclick="OpenEditUser('<%#Eval("UserID") %>')" onclick="handleClick()" >
                    <td><%#Eval("UserName")%></td>       
                    <td><asp:Label runat="server" ID="lblFine"></asp:Label></td>
                    <td><asp:Label runat="server" ID="lblReward"></asp:Label></td>   
                    <td><asp:Label runat="server" ID="lblPerformanceMonth"></asp:Label></td>           
                    <td><asp:Label runat="server" ID="lblCheckOffsMonth"></asp:Label></td>
                    <td><asp:Label runat="server" ID="lblMonthBalance"></asp:Label></td>
                    <td><asp:Label runat="server" ID="lblPerformanceYear"></asp:Label></td>           
                    <td><asp:Label runat="server" ID="lblCheckOffsYear"></asp:Label></td>
                    <td><asp:Label runat="server" ID="lblYearBalance"></asp:Label></td>
                    <td><asp:Label runat="server" ID="lblUserID" Visible="false" Text='<%#Eval("UserID") %>'></asp:Label></td>
                </tr>
                 </ItemTemplate>
                 <FooterTemplate>
                    <tr class="data">
                        <td>合计</td>
                        <td><asp:Label runat="server" id ="lblFineMonthTotal"></asp:Label></td>
                        <td><asp:Label runat="server" id ="lblRewardMonthTotal"></asp:Label></td>
                        <td><asp:Label runat="server" id ="lblPerformanceMonthTotal"></asp:Label></td>
                        <td><asp:Label runat="server" id ="lblCheckOffsMonthTotal"></asp:Label></td>
                        <td><asp:Label runat="server" id ="lblBalanceMonthTotal"></asp:Label></td>
                        <td><asp:Label runat="server" id ="lblPerformanceYearTotal"></asp:Label></td>
                        <td><asp:Label runat="server" id ="lblCheckOffsYearTotal"></asp:Label></td>
                        <td><asp:Label runat="server" id ="lblBalanceYearTotal"></asp:Label></td>
                        <td></td>
                    </tr>
                    </tbody>
                </table>  
                 </FooterTemplate>
             </asp:Repeater>    
               <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" PageSize="20"
                            CurrentPageButtonClass="cpb" 
                            CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
                            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                            ShowCustomInfoSection="Left" Width="100%" LayoutType="Table"  
                            SubmitButtonClass="but" SubmitButtonText="转到" OnPageChanged="AspNetPager1_PageChanged">
                        </webdiyer:AspNetPager>    
         </div>
         <div id="__divRuning" style="POSITION: absolute; Z-INDEX: 108; width:260px; height:47px; BACKGROUND-COLOR: white; border:#9E9E9B 1px solid; font:bold 14px; color:#FF5A00; text-align:center; padding-top:16px; DISPLAY:none;">数据同步中，请稍候...</div>  
</asp:Content>
